package com.kc.gb.device.common.adapter.dto.basic.station.dto;

import lombok.Data;

import java.util.List;

@Data
public class StationPointDTO {
    public static final String WORKING_ORIENTATION = "workingOrientation";
    public static final String OPERATION_TYPE = "operationType";
    public static final String TRANSPORT_CAPACITY = "transportCapacity";
    private Long id;
    private Long stationId;
    private String stationCode;
    private String zoneCode;
    private String mapCode;
    private String pointCode;
    private String pointName;
    private String pointType;
    private Integer x;
    private Integer y;
    private String operationType;
    private String workingOrientation;
    private String transportCapacity;
    private List<String> slotCodes;
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    // private LocalDateTime createTime;
    private StationPointLayoutPosition layoutPosition;
    // private StationLiftTypeConsts.StationPointLiftType liftType;

    public static enum StationPointLayoutPosition {
        left,
        right;

        private StationPointLayoutPosition() {
        }

        public static StationPointLayoutPosition other(StationPointLayoutPosition layoutPosition) {
            return layoutPosition == left ? right : left;
        }
    }
}
